package cn.formal.service.impl;

import cn.formal.entity.Result;
import cn.formal.service.SearchService;
import cn.formal.vi.QuestionAnswer;
import org.springframework.stereotype.Service;

@Service
public class SearchServiceImpl implements SearchService {

    @Override
    public Result addDoc(QuestionAnswer answer) {
        Result result = new Result();
        result.setCode(false);
        result.setMsg("当前系统正忙请待会再试....");
        return result;
    }

    @Override
    public Result findById(Long id) {
        Result result = new Result();
        result.setCode(false);
        result.setMsg("当前系统正忙请待会再试....");
        return result;
    }

    @Override
    public Result update(QuestionAnswer answer) {
        Result result = new Result();
        result.setCode(false);
        result.setMsg("当前系统正忙请待会再试....");
        return result;
    }

    @Override
    public Result deleteById(Long id) {
        Result result = new Result();
        result.setCode(false);
        result.setMsg("当前系统正忙请待会再试....");
        return result;
    }

    @Override
    public Result deleteAll() {
        Result result = new Result();
        result.setCode(false);
        result.setMsg("当前系统正忙请待会再试....");
        return result;
    }

    @Override
    public Result findByTitle(String title) {
        Result result = new Result();
        result.setCode(false);
        result.setMsg("当前系统正忙请待会再试....");
        return result;
    }

    @Override
    public Result findAll(Integer page, Integer size) {
        Result result = new Result();
        result.setCode(false);
        result.setMsg("当前系统正忙请待会再试....");
        return result;
    }
}
